home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / os.260 < prev    next >
Text File  |  1992-02-06  |  431b  |  13 lines

  1. setuid Terminal Shell os
  2.  
  3. Q:  Why are Terminal and Shell setuid programs?
  4.  
  5. A:  Terminal and Shell both need to be setuid root because the children that they fork require ownership of a /dev/ptynn entry.  The parent (Terminal or Shell) chown's the /dev/pty entry to the ownership of the user.  After the child exit()'s, the parent (Terminal or Shell) chown's the /dev/pty entry back to root.
  6.  
  7. QA260
  8.  
  9. Valid for 1.0 
  10. Valid for 2.0 
  11.  
  12.  
  13.